﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Text;

namespace Jzy.Web.test
{
    public partial class WebForm3 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            //test.User user = new User();

            StringBuilder sb = new StringBuilder();
            StringWriter write = new StringWriter(sb);           

            test.DataTestDataContext context = new DataTestDataContext();
            context.Log = write;
            List<User> list = context.User.Skip(10).Take(8).OrderBy(T=>T.ID).OrderByDescending(T=>T.Orders).ToList();
            Label1.Text = sb.ToString();

            //StringWriter write = new StringWriter();

        }
    }
}